projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed670e
)
font chooser: Fix a memory leak
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 5 Jan 2018 02:19:28 +0000
(21:19 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 5 Jan 2018 02:19:28 +0000
(21:19 -0500)
We were leaking the delayed font descriptions.
gtk/gtkfontchooserwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfontchooserwidget.c
b/gtk/gtkfontchooserwidget.c
index ee5f50f0a29342909b0433aea5e213f6a9ec23a3..7b2f232670318e4a1d19e5cac696b830410b3804 100644
(file)
--- a/
gtk/gtkfontchooserwidget.c
+++ b/
gtk/gtkfontchooserwidget.c
@@
-1399,6
+1399,7
@@
gtk_font_chooser_widget_update_font_name (GtkFontChooserWidget *fontchooser,
g_object_unref (family);
g_object_unref (face);
+ gtk_delayed_font_description_unref (desc);
if (priv->level == GTK_FONT_CHOOSER_LEVEL_FAMILY)
title = g_strdup (fam_name);